<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;
/*
 * 权限路由开始
 */
//管理员列表
Route::rule('admin/list', 'CommonAdmin/list');
//管理员编辑
Route::rule('admin/edit', 'CommonAdmin/edit');
//管理员删除
Route::rule('admin/delete', 'CommonAdmin/delete');

//路由列表
Route::rule('route/list', 'CommonRoute/list');
//路由编辑
Route::rule('route/edit', 'CommonRoute/edit');
//路由删除
Route::rule('route/delete', 'CommonRoute/delete');

//权限列表
Route::rule('auth/list', 'CommonAuth/list');
//权限编辑
Route::rule('auth/edit', 'CommonAuth/edit');
//权限删除
Route::rule('auth/delete', 'CommonAuth/delete');

//后台登录
Route::rule('login/login', 'Login/login');
//后台获取验证码
Route::rule('login/captcha', 'Login/captcha');
//后台加载帐号信息
Route::rule('login/load', 'Login/loadAdmin');

//城市列表（不分页）
Route::rule('city-config/listAll', 'CommonCityConfig/listAll');
//城市列表
Route::rule('city-config/list', 'CommonCityConfig/list');

//角色列表(不分页)
Route::rule('role/listAll', 'CommonRole/listAll');
//角色列表
Route::rule('role/list', 'CommonRole/list');
//角色编辑
Route::rule('role/edit', 'CommonRole/edit');
//角色删除
Route::rule('role/delete', 'CommonRole/delete');

//菜单列表(不分页)
Route::rule('menu/listAll', 'CommonMenu/listAll');
//菜单列表
Route::rule('menu/list', 'CommonMenu/list');
//菜单编辑
Route::rule('menu/edit', 'CommonMenu/edit');
//菜单删除
Route::rule('menu/delete', 'CommonMenu/delete');
//菜单列表(父级列表)
Route::rule('menu/parentList', 'CommonMenu/parentList');
/*
 * 权限路由结束
 */

//-------------------------------------------------------------------------------------------
/*
 * 业务后台路由开始
 */

//excel文件上传
Route::rule('uploadCommon/excelTemp', 'YwCommon/excelTemp');
//图片上传(服务器)
Route::rule('uploadCommon/uploadImage', 'YwCommon/uploadImage');
//图片上传(OSS)
Route::rule('uploadCommon/uploadImageOss', 'YwCommon/uploadImageOss');
//excel文件处理
Route::rule('uploadCommon/excelUpload', 'YwCommon/excelUpload');

//系统配置(加载)
Route::rule('other-config/load', 'YwOtherConfig/load');
//系统配置(编辑)
Route::rule('other-config/edit', 'YwOtherConfig/edit');

//项目提交记录(加载)
Route::rule('project-submit-record/list', 'YwProjectSubmitRecord/list');
//项目提交记录(编辑)
Route::rule('project-submit-record/edit', 'YwProjectSubmitRecord/edit');


/*
 * 业务后台路由结束
 */

